package com.yangcangclub.merchandise.bean;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品实体类
 * Created by 肖明明 on 2017/2/17.
 */
public class Product {

    private int id; 	/** 商品主键 */
    private String name; 	/** 商品名称 */
    private String subtitle; 	/** 商品副标题 */
    private String bannerUrl; 	/** 商品头图地址 */
    private String content; 	/** 商品详情 */
    private String category; 	/** 商品品类 */
    private BigDecimal unitPrice; 	/** 商品单价 */
    private BigDecimal showUnitPrice; 	/** 页面显示价格，单价。不参与结算 */
    private BigDecimal shipping; 	/** 运费 */
    private int inventory; 	/** 库存量 */
    private int sellNum; 	/** 售卖量 */
    private int status; 	/** 商品状态。1上架。2下架。3暂存。 */
    private int orderSort; 	/** 排序依据，大优先 */
    private int pubUserId; 	/** 发布人用户ID */
    private String pubUserName; 	/** 发布人user_name。冗余字段 */
    private Date createTime; 	/** 创建时间 */
    private int isFuxi; 	/** 是否是富硒商品，1不是；2是 */
    private int warehouseType; 	/** 商品归属仓库，1普通商品；2云南仓；3中设仓；4贵州仓；注意is_fuxi=2时，该字段必须等于1'*/
    private int isEveryday; 	/** 是否每日优礼，1不是；2是 */
    private int isConcentrate; 	/** 是否精选，1不是；2是 */
    private int isLimit; 	/** 是否限购商品，1是；2不是 */
    private Date startTime; 	/** 限购开始时间 */
    private Date endTime; 	/** 限购结束时间 */
    private int showInventory; 	/** 页面显示库存量，不参与购买 */
    private int isShowModule; /** 模块是否显示 0显示 1不显示 */

    //region getters and setters
    public int getId() {return id;}
    public void setId(int id) {this.id = id;}
    public String getName() {return name;}
    public void setName(String name) {this.name = name;}
    public String getBannerUrl() {return bannerUrl;}
    public void setBannerUrl(String bannerUrl) {this.bannerUrl = bannerUrl;}
    public String getContent() {return content;}
    public void setContent(String content) {this.content = content;}
    public String getCategory() {return category;}
    public void setCategory(String category) {this.category = category;}
    public BigDecimal getUnitPrice() {return unitPrice;}
    public void setUnitPrice(BigDecimal unitPrice) {this.unitPrice = unitPrice;}
    public BigDecimal getShowUnitPrice() {return showUnitPrice;}
    public void setShowUnitPrice(BigDecimal showUnitPrice) {this.showUnitPrice = showUnitPrice;}
    public BigDecimal getShipping() {return shipping;}
    public void setShipping(BigDecimal shipping) {this.shipping = shipping;}
    public int getInventory() {return inventory;}
    public void setInventory(int inventory) {this.inventory = inventory;}
    public int getSellNum() {return sellNum;}
    public void setSellNum(int sellNum) {this.sellNum = sellNum;}
    public int getStatus() {return status;}
    public void setStatus(int status) {this.status = status;}
    public int getOrderSort() {return orderSort;}
    public void setOrderSort(int orderSort) {this.orderSort = orderSort;}
    public int getPubUserId() {return pubUserId;}
    public void setPubUserId(int pubUserId) {this.pubUserId = pubUserId;}
    public String getPubUserName() {return pubUserName;}
    public void setPubUserName(String pubUserName) {this.pubUserName = pubUserName;}
    public Date getCreateTime() {return createTime;}
    public void setCreateTime(Date createTime) {this.createTime = createTime;}
    public int getIsFuxi() {return isFuxi;}
    public void setIsFuxi(int isFuxi) {this.isFuxi = isFuxi;}
    public int getIsEveryday() {return isEveryday;}
    public void setIsEveryday(int isEveryday) {this.isEveryday = isEveryday;}
    public int getIsConcentrate() {return isConcentrate;}
    public void setIsConcentrate(int isConcentrate) {this.isConcentrate = isConcentrate;}
    public int getIsLimit() {return isLimit;}
    public void setIsLimit(int isLimit) {this.isLimit = isLimit;}
    public Date getStartTime() {return startTime;}
    public void setStartTime(Date startTime) {this.startTime = startTime;}
    public Date getEndTime() {return endTime;}
    public void setEndTime(Date endTime) {this.endTime = endTime;}
    public int getShowInventory() {return showInventory;}
    public void setShowInventory(int showInventory) {this.showInventory = showInventory;}
    public String getSubtitle() {
        return subtitle;
    }
    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }
    public int getWarehouseType() {
        return warehouseType;
    }
    public void setWarehouseType(int warehouseType) {
        this.warehouseType = warehouseType;
    }

    public int getIsShowModule() {
        return isShowModule;
    }

    public void setIsShowModule(int isShowModule) {
        this.isShowModule = isShowModule;
    }
    //endregion


    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", bannerUrl='" + bannerUrl + '\'' +
                ", content='" + content + '\'' +
                ", category='" + category + '\'' +
                ", unitPrice=" + unitPrice +
                ", showUnitPrice=" + showUnitPrice +
                ", shipping=" + shipping +
                ", inventory=" + inventory +
                ", sellNum=" + sellNum +
                ", status=" + status +
                ", orderSort=" + orderSort +
                ", pubUserId=" + pubUserId +
                ", pubUserName='" + pubUserName + '\'' +
                ", createTime=" + createTime +
                ", isFuxi=" + isFuxi +
                ", warehouseType=" + warehouseType +
                ", isEveryday=" + isEveryday +
                ", isConcentrate=" + isConcentrate +
                ", isLimit=" + isLimit +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", showInventory=" + showInventory +
                ", isShowModule=" + isShowModule +
                '}';
    }
}
